<?php
class Information extends Controller
{
    public function actionIndex($informationId)
    {

        $this->setTitle('Giới thiệu về công ty');
        $this->loadChildControllers(array(
            // left siderbar
            'quick_search' => 'module/QuickSearch',
            'category'      => 'module/Category',
            'contact_info'  => 'module/ContactInfo',
            'support'       => 'module/Support',

            // right sidebar
            'featured_product' => 'module/FeaturedProduct',
            'discounting_product' => 'module/DiscountingProduct',
        ));
        $introModel = $this->_loader->model('InformationModel');

        $viewParams = array(
            'information' => $introModel->getInformationById($informationId),
        );
        return $this->responseView('information/information', $viewParams, 'layout/fullwidth');
    }

}